package com.xiaoq.manager.entity;

import java.io.Serializable;
import java.util.List;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xiaoq.MongoEntity;
import com.xiaoq.users.entity.UserTermDeviceEntity;
@Entity(value="merchant_mgr",noClassnameStored=true)
public class MerchantMgrEntity extends MongoEntity implements Serializable {/**
	 * 
	 */
	@JsonIgnore
	@Transient
	private static final long serialVersionUID = -4998488751881797846L;
	
	private String merchantId; //商家ID
	private String shopId; // 店铺ID
	private String shopType; // 店铺类型
	private String logo;  // 店铺logo
	private String userId; // 会员ID
	private String name; //管理员名称
	private String mobile; //手机号
	private String email; //邮箱
	private String passwd; // 管理员密码
	private List<MerchantRoleEntity> mgrRoles; // 管理员角色列表(角色的编码)
	private List<MerchantFunEntity> menuList; // 功能编码列表
	private String salt; // 加密用的应该是私钥
	private String roleId; //角色Id
	
	private String contact;//联系方式
	
	private String logoUrl; // 管理员的logo
	
	
	
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Embedded
	private UserTermDeviceEntity termDevice;
	
	private int status; //启用状态 0启用/1停用
	
	private int step; //景区入住的步骤 1 创建景区，2提交资质，3正在审核，4，审核成功
	
	

	public int getStep() {
		return step;
	}

	public void setStep(int step) {
		this.step = step;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getShopType() {
		return shopType;
	}

	public void setShopType(String shopType) {
		this.shopType = shopType;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPasswd() {
		return passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}


	public List<MerchantRoleEntity> getMgrRoles() {
		return mgrRoles;
	}

	public void setMgrRoles(List<MerchantRoleEntity> mgrRoles) {
		this.mgrRoles = mgrRoles;
	}

	public List<MerchantFunEntity> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<MerchantFunEntity> menuList) {
		this.menuList = menuList;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getLogoUrl() {
		return logoUrl;
	}

	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}

	public UserTermDeviceEntity getTermDevice() {
		return termDevice;
	}

	public void setTermDevice(UserTermDeviceEntity termDevice) {
		this.termDevice = termDevice;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	

}
